<template>
	<view class="scrool-page">
		<view>
			<uni-data-select  v-model="value" :localdata="range" ></uni-data-select>			
		</view>
		<view class="list-cont">
			<scroll-view  class="scrool-more" style="height: 100%" scroll-y="true" scroll-with-animation="true">
				<view v-for="(item,index) in productList" :key="item.boxCode">
					<uni-card :title="'产成品序号:'+(index+1)">
						<text class="uni-body">物料编码：{{ item.itemCode }}</text><br>
						<text class="uni-body">数量：{{ item.qty }}</text><br>
						<text class="uni-body">箱码：{{ item.boxCode }}</text><br>
					</uni-card>
				</view>
			</scroll-view>
		</view>
		
		<view class="footer">
			<button type="default"  @click="submit">处理</button>
		</view>
	</view>
</template>
<script>
	import { getToken } from '@/utils/auth';
	export default {
		data() {
			return {
				productList:[],
				value:'继续入库',
				range: [
					{ value: '继续入库', text: "继续入库" },
					{ value: '返工出库', text: "返工出库" },
					{ value: '报废杂发', text: "报废杂发" },
				],
			}
		},
		
		created: function(){
			this.orgId = uni.getStorageSync('orgId');
			this.init();
		},
		
		methods: {
			init(){
				uni.request({
					url:this.baseUrl+'/system/barcode/list/isfreeze',
					data:{
						orgId:this.orgId,
						userName:this.userName,
					},
					method: 'POST',
					header:{
						'authorization': getToken()
					},
					dataType:'json',
					success: (res) =>{
						if(res.data.code == '200'){
							console.log(res.data);
							//this.productList = res.data.data;
						}else{
							uni.showToast({
								title: res.data.msg,
								icon: 'none',
								duration: 3000
							});
						}
						
					}
				})
			},
			
			submit(){
				
			},
		}
	}
</script>

<style lang="scss">
	.main {
		background-color: #fff;
		height: 300upx;
		align-items: center;
		margin-top: 10upx;
	}
	.text-content {
		font-size: 48rpx;
		text-align: center;
	}
	
	.city {
		/* #ifndef APP-PLUS-NVUE */
		display: flex;
		/* #endif */
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		// width: 160rpx;
		margin-left: 4px;
		font-size: 26rpx;
	}
	
	.input-view {
		display: flex;
		flex-direction: row;
		flex: 1;
		//background-color: #f8f8f8;
		height: 30px;
		padding: 0 80px;
		flex-wrap: nowrap;
		margin: 7px 0;
		line-height:30px;
		font-size: 26rpx;
	}
	page {
		width: 100%;
		height: 100%;
	}
	
	
	.scrool-page {
		display: flex;
		flex-direction: column;
		width: 100%;
		height: 100%;
	}
	
	.header-cont {
		width: 100%;
		height: 110rpx;
		line-height: 100rpx;
		text-align: center;
		// background: red;
	}
	
	.list-cont {
		flex: 1;
		position: relative;
	
		.scrool-more {
			position: absolute;
			left: 0;
			right: 0;
			top: 0;
			bottom: 0;
		}
	
		.list {
			height: 80rpx;
			line-height: 80rpx;
			text-align: center;
			background: #e0e0e0;
	
		}
	}
	
	
	.footer {
		color: #fff;
		line-height: 100rpx;
		flex: 0 0 100rpx;
		/* 不放大不缩小固定100rpx */
	}
</style>

